'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  // async index() {
  //   const { ctx } = this;
  //   ctx.body = 'hi, egg';
  // }
  async getuser() {
    let userid=this.ctx.request.query.userid
    this.ctx.body=await this.ctx.service.zlx.getuser(userid)
  }
  async getopus() {
    let userid=this.ctx.request.query.userid
    this.ctx.body=await this.ctx.service.zlx.getopus(userid)
  }
  async getcook(){
    let userid=this.ctx.request.query.userid
    this.ctx.body=await this.ctx.service.zlx.getcook(userid)
  }
  async getfollow(){
    let userid=this.ctx.request.query.userid
    this.ctx.body=await this.ctx.service.zlx.getfollow(userid)
  }
  async getfollow2(){
    let userid=this.ctx.request.query.userid
    this.ctx.body=await this.ctx.service.zlx.getfollow2(userid)
  }
  async getfollow3(){
    let fans=this.ctx.request.query.fans
    let star=this.ctx.request.query.star
    this.ctx.body=await this.ctx.service.zlx.getfollow3(fans,star)
  }
  async guanzhu1(){
    let fans=this.ctx.request.query.fans
    let star=this.ctx.request.query.star
    this.ctx.body=await this.ctx.service.zlx.guanzhu1(fans,star)
  }
  async guanzhu2(){
    let fans=this.ctx.request.query.fans
    let star=this.ctx.request.query.star
    this.ctx.body=await this.ctx.service.zlx.guanzhu2(fans,star)
  }
}

module.exports = HomeController;
